package com.wxg.gui.baidu;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.SystemColor;

import javax.swing.JFrame;

public class BaiduFanyiWordAudioApp {

	private JFrame frame;
	
	private WordInputPanel wordInputPanel;
	private WordExplainResultPanel wordExpResultPanel;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					BaiduFanyiWordAudioApp window = new BaiduFanyiWordAudioApp();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public BaiduFanyiWordAudioApp() {
		wordInputPanel = new WordInputPanel(this);
		wordExpResultPanel = new WordExplainResultPanel();
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.getContentPane().setBackground(SystemColor.inactiveCaption);
		
		frame.getContentPane().add(wordInputPanel, BorderLayout.NORTH);
		
		frame.getContentPane().add(wordExpResultPanel, BorderLayout.CENTER);
		frame.setBounds(100, 100, 450, 300);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public WordInputPanel getWordInputPanel() {
		return wordInputPanel;
	}

	public WordExplainResultPanel getWordExpResultPanel() {
		return wordExpResultPanel;
	}
	
	

}
